package com.netbao.sys.service;

import com.netbao.model.PageBean;
import com.netbao.model.PageResult;
import com.netbao.model.Result;
import com.netbao.sys.model.User;
import org.springframework.validation.BindingResult;

import javax.servlet.http.HttpSession;
import java.util.Map;

public interface UserService {
    Result addUser(User user);

    Result getById(Integer id);

    Result upDate(User user);

    Result del(Integer id);

    PageResult list(PageBean pageBean, String userName);

    Result saveRole(String roleIds, Long userid, String cnames);

    PageResult getRole();


    Map<String,Object> login(String imageCode, User user, BindingResult bindingResult, HttpSession session);

    Result getFirst();
}
